/*
 * File Name：WordDetail.java
 * Copyright：Copyright 2008-2015 CiWong.Inc. All Rights Reserved.
 * Description： WordDetail.java
 * Modify By：bin
 * Modify Date：2015年1月17日
 * Modify Type：Add
 */
package com.ciwong.epaper.modules.evaluate.bean;

import com.ciwong.libs.oralevaluate.bean.Word;

import java.util.ArrayList;
import java.util.List;

/**
 * 单词详情
 *
 * @author bin
 * @version ciwong v.1.0 2015年1月17日
 * @since ciwong v.1.0
 */
public class WordDetail extends Word {

    private static final long serialVersionUID = 8907041422223227258L;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    private long id;
    /**
     * 单词id主键
     */
    private String wId;

    /**
     * 背单词主键
     */

    private String dId;


    /**
     * 单词
     */
    private String words;

    /**
     * 单词读音音频文件
     */
    private String wordFile;

    /**
     * 是否拓展单词 0==否 1==是
     */
    private int wordType;

    /**
     * 音标
     */
    private String symbol;

    /**
     * 音节
     */
    private String syllable;

    /**
     * 释义
     */
    private String pretations;

    /**
     * 课文例句
     */
    private String sentences;

    /**
     * 例句问卷音频文件
     */
    private String sentFile;

    /**
     * 实例图片
     */

    private String wordPic;
    private int color;

    /**
     * 复习模式数组
     *
     * @return
     */

    private List<String> moudleReview = new ArrayList<String>() {
        {
            add("VOICE_TO_CHINESE");
            add("CHINESE_TO_ENGLISH");
            add("ENGLISH_TO_CHINESE");
        }
    };

    public List<String> getMoudleReview() {
        return moudleReview;
    }

    public void setMoudleReview(List<String> moudleReview) {
        this.moudleReview = moudleReview;
    }

    public int getColor() {
        return this.color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    /**
     * 获取 单词id主键
     *
     * @return wId
     */
    public String getwId() {
        return wId;
    }

    /**
     * TODO method comment。
     *
     * @param id 单词id主键
     */
    public void setwId(String id) {
        this.wId = id;
    }

    public String getdId() {
        return dId;
    }

    public void setdId(String dId) {
        this.dId = dId;
    }

    public String getWords() {
        return words;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public String getWordFile() {
        return wordFile;
    }

    public void setWordFile(String wordFile) {
        this.wordFile = wordFile;
    }

    public int getWordType() {
        return wordType;
    }

    public void setWordType(int wordType) {
        this.wordType = wordType;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getSyllable() {
        return syllable;
    }

    public void setSyllable(String syllable) {
        this.syllable = syllable;
    }

    public String getPretations() {
        return pretations;
    }

    public void setPretations(String pretations) {
        this.pretations = pretations;
    }

    public String getSentences() {
        return sentences;
    }

    public void setSentences(String sentences) {
        this.sentences = sentences;
    }

    public String getSentFile() {
        return sentFile;
    }

    public void setSentFile(String sentFile) {
        this.sentFile = sentFile;
    }

    public String getWordPic() {
        return wordPic;
    }

    public void setWordPic(String wordPic) {
        this.wordPic = wordPic;
    }

    @Override
    public boolean equals(Object o) {
        return ((WordDetail) o).getwId().equals(getwId());
    }

    @Override
    public String toString() {
        return "WordDetail{" +
                "id=" + id +
                ", wId='" + wId + '\'' +
                ", dId='" + dId + '\'' +
                ", words='" + words + '\'' +
                ", wordFile='" + wordFile + '\'' +
                ", wordType=" + wordType +
                ", symbol='" + symbol + '\'' +
                ", syllable='" + syllable + '\'' +
                ", pretations='" + pretations + '\'' +
                ", sentences='" + sentences + '\'' +
                ", sentFile='" + sentFile + '\'' +
                ", wordPic='" + wordPic + '\'' +
                ", color=" + color +
                ", moudleReview=" + moudleReview +
                '}';
    }
}
